<template>
  <web-view :src="src" allow fullscreen />
</template>

<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
const src = ref('https://vdept3.bdstatic.com/mda-pgt9y8ce81nmmgdr/cae_h264/1690647421008435704/mda-pgt9y8ce81nmmgdr.mp4?v_from_s=hkapp-haokan-hna&auth_key=1747060035-0-0-6473417fe58d8b96703ff50f88ad2913&bcevod_channel=searchbox_feed&pd=1&cr=0&cd=0&pt=3&logid=1635841688&vid=9064068536391247879&klogid=1635841688&abtest=150154_8')
// onLoad((options) => {
//     console.log('onLoad', options)
// })

// const src = ref('https://www.720yun.com/vr/61ej5zsuun0')
onLoad((options) => {
  console.log('options', options)
  src.value = options?.src || src.value
})
</script>

<style scoped lang="scss"></style>
